package org.hdax.dm.client;

import org.hdax.dm.entity.order.DmOrderLinkUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "dm-order-provider")
@Repository
public interface DmOrderLinkUserClient {

    @PostMapping(path = "/addOrderLinkUser")
    void addOrderLinkUser(DmOrderLinkUser orderLinkUser);

    @PostMapping(path = "/delLinkUser")
    void delLinkUser(@RequestParam("orderNo")Long orderNo);
}
